/*
 * Copyright (C), 2002-2013, 苏宁易购电子商务有限公司
 * FileName: ExchangeActivity.java
 * Author:   12070644@cnsuning.com
 * Date:     2012-12-22 上午00:00:00
 */
package com.suning.sawp.po.exchange;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 实体类以旧换新活动
 *
 * @author 12070644@cnsuning.com
 */
@Entity(name = "exchange_activity")
public class ExchangeActivity implements Serializable {
	/**
	 * Serial UID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 活动编号
	 */
	private String activityId;
	/**
	 * 活动名称
	 */
	private String activityName;
	/**
	 * 开始时间
	 */
	private String startTime;
	/**
	 * 结束时间
	 */
	private String endTime;
	/**
	 * 活动秘钥
	 */
	private String activitySecretKey;
	/**
	 * 配置时间
	 */
	private String configTime;
	/**
	 * 配置员工工号
	 */
	private String configEmployee;
	/**
	 * 订单提交开始时间
	 */
	private String orderStartTime;
	/**
	 * 订单提交截止时间
	 */
	private String orderEndTime;

	/**
	 * Get activityId
	 *
	 * @return activityId
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	@Column(name = "activity_id")
	public String getActivityId() {
		return this.activityId;
	}

	/**
	 * Set activityId
	 *
	 * @param activityId
	 *            活动编号
	 */

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	/**
	 * Get activityName
	 *
	 * @return activityName
	 */
	@Column(name = "activity_name")
	public String getActivityName() {
		return this.activityName;
	}

	/**
	 * Set activityName
	 *
	 * @param activityName
	 *            活动名称
	 */

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	/**
	 * Get startTime
	 *
	 * @return startTime
	 */
	@Column(name = "start_time")
	public String getStartTime() {
		return this.startTime;
	}

	/**
	 * Set startTime
	 *
	 * @param startTime
	 *            开始时间
	 */

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	/**
	 * Get endTime
	 *
	 * @return endTime
	 */
	@Column(name = "end_time")
	public String getEndTime() {
		return this.endTime;
	}

	/**
	 * Set endTime
	 *
	 * @param endTime
	 *            结束时间
	 */

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	/**
	 * Get activitySecretKey
	 *
	 * @return activitySecretKey
	 */
	@Column(name = "activity_secret_key")
	public String getActivitySecretKey() {
		return this.activitySecretKey;
	}

	/**
	 * Set activitySecretKey
	 *
	 * @param activitySecretKey
	 *            活动秘钥
	 */

	public void setActivitySecretKey(String activitySecretKey) {
		this.activitySecretKey = activitySecretKey;
	}

	/**
	 * Get configTime
	 *
	 * @return configTime
	 */
	@Column(name = "config_time")
	public String getConfigTime() {
		return this.configTime;
	}

	/**
	 * Set configTime
	 *
	 * @param configTime
	 *            配置时间
	 */

	public void setConfigTime(String configTime) {
		this.configTime = configTime;
	}

	/**
	 * Get configEmployee
	 *
	 * @return configEmployee
	 */
	@Column(name = "config_employee")
	public String getConfigEmployee() {
		return this.configEmployee;
	}

	/**
	 * Set configEmployee
	 *
	 * @param configEmployee
	 *            配置员工工号
	 */

	public void setConfigEmployee(String configEmployee) {
		this.configEmployee = configEmployee;
	}

	/**
	 * Get orderStartTime
	 *
	 * @return orderStartTime
	 */
	@Column(name = "order_start_time")
	public String getOrderStartTime() {
		return this.orderStartTime;
	}

	/**
	 * Set orderStartTime
	 *
	 * @param orderStartTime
	 *            订单提交开始时间
	 */

	public void setOrderStartTime(String orderStartTime) {
		this.orderStartTime = orderStartTime;
	}

	/**
	 * Get orderEndTime
	 *
	 * @return orderEndTime
	 */
	@Column(name = "order_end_time")
	public String getOrderEndTime() {
		return this.orderEndTime;
	}

	/**
	 * Set orderEndTime
	 *
	 * @param orderEndTime
	 *            订单提交截止时间
	 */

	public void setOrderEndTime(String orderEndTime) {
		this.orderEndTime = orderEndTime;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("ExchangeActivity{");
		sb.append("activityId='").append(activityId).append('\'');
		sb.append(", activityName='").append(activityName).append('\'');
		sb.append(", startTime='").append(startTime).append('\'');
		sb.append(", endTime='").append(endTime).append('\'');
		sb.append(", activitySecretKey='").append(activitySecretKey).append('\'');
		sb.append(", configTime='").append(configTime).append('\'');
		sb.append(", configEmployee='").append(configEmployee).append('\'');
		sb.append(", orderStartTime='").append(orderStartTime).append('\'');
		sb.append(", orderEndTime='").append(orderEndTime).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
